//  Copyright (c) 2018-present, Cruise LLC
//
//  This source code is licensed under the Apache License, Version 2.0,
//  found in the LICENSE file in the root directory of this source tree.
//  You may not use this file except in compliance with the License.

@import "~webviz-core/src/styles/mixins.module.scss";
@import "~webviz-core/src/styles/colors.module.scss";
@import "~webviz-core/src/styles/variables.scss";

.container {
  padding: 16px;
  height: $playbackControlHeight;
  align-items: center;

  button {
    align-items: center;
  }
}

.tip {
  @include monospace;
  white-space: nowrap;

  > div {
    padding-bottom: 5px;

    &:last-child {
      padding-bottom: 0px;
    }
  }
}

.tipTitle {
  color: $dark2;
  width: 70px;
  text-align: right;
  margin-right: 4px;
  display: inline-block;
}

.tipValue {
  @include monospace;
}

.playIconWrapper {
  display: flex;
}
.bar {
  margin: 0px 0px 0px 5px;
  flex: 1;
  display: flex;
  flex-direction: row;
  position: relative;
  height: 100%;
}

.sliderContainer {
  position: absolute;
  z-index: 2;
  flex: 1;
  width: 100%;
  height: 100%;
}

.disconnected {
  color: $text-muted;
}

.stateBar {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  height: 100%;

  canvas {
    min-width: 100%;
    min-height: 100%;
    flex: 1 0 100%;
  }
}

.seekBtn {
  padding: 4px;
  margin: 0;
  display: flex;
  height: auto;
  background-color: $dark4;

  &:hover {
    opacity: 1;
    background-color: $dark5;
  }
}

.inactive,
.inactive:hover {
  opacity: 0.4;
  color: white;
  background-color: $dark4;
  cursor: none;
}

.timeDisplayMethodButton {
  min-width: 32px;
  background-color: transparent;
  margin: 0px 4px;
  padding: 8px 4px;
  font-family: $monospace-font;
  color: $light;
  opacity: 1;

  svg {
    opacity: 1 !important;
    margin-left: -2px !important;
    width: 16px !important;
    height: 16px !important;
  }

  &:hover {
    background-color: transparent;
    opacity: 0.8;
  }
}
